package com.daniu.ssmdemo.pojo;

import java.util.Date;

public class Trade {


    private Integer id;
    private Date addtime;
    private String tradetype;
    private Double amount;
    private String cardno;

    private Account account;


    public Trade() {
    }

    public Trade(String tradetype, Double amount, String cardno) {
        this.tradetype = tradetype;
        this.amount = amount;
        this.cardno = cardno;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public String getTradetype() {
        return tradetype;
    }

    public void setTradetype(String tradetype) {
        this.tradetype = tradetype;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public String getCardno() {
        return cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    @Override
    public String toString() {
        return "交易记录信息 {" +
                "id=" + id +
                ", addtime=" + addtime +
                ", tradetype='" + tradetype + '\'' +
                ", amount=" + amount +
                ", cardno='" + cardno + '\'' +
                ", account=" + account +
                '}';
    }
}
